package com.ggb.readingtime.properties

import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.stereotype.Component


@Component
@ConfigurationProperties(prefix = "app.jwt")
data class JwtProperties(
    /**
     * 管理端员工生成jwt令牌相关配置
     */
    var adminSecretKey: String? = null,
    var adminTtl: Long = 7200,
    var adminTokenName: String? = null,
    /**
     * C端员工生成jwt令牌相关配置
     */
    var userSecretKey: String? = null,
    var userTtl: Long = 7200,
    var userTokenName: String? = null,
)